<?php
//print_r($listfeatures);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<link rel="stylesheet" href="<?php echo base_url();?>css/reset.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/text.css" />
<link rel="stylesheet" href="<?php echo base_url();?>css/960_24_col.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/jquery-ui-1.8.21.custom.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/style.css" />
 <link rel="stylesheet" href="<?php echo base_url();?>css/faary.css" type="text/css" />
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-1.7.2.min.js"></script>
 <script type="text/javascript" src="<?php echo base_url();?>js/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/scripts.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>js/jquery.validate.js"></script>
<style>
.name{width:500px;}
</style>
<script>
$(function()
{
	/*
$(".featureselect").change(function(){
		var selectvalue=$(this).is("selected").val();
	$(".featureselect").each(function(index)
			{
				if($(this).val()==selectvalue &&$(this).val()!=0)
				{
					alert("this web tours is selected");
					//alert($(this).val());
					return false;
				}				
			
			});

		});

	*/
});

</script>
</head>

<body>
	
	<div class="principal container_24">
		
		<!--logo-->
		<div class="logo grid_24">
			<div class="grid_1">&nbsp;</div>
			<div class="grid_4 logoimage"><img src="<?php echo base_url();?>img/logo.png" height="90"></div>
			<div class="logout grid_5"><a href="index.php?loginprocess/loginout"><img src="<?php echo base_url();?>img/bt_logout.jpg"/></a></div>
		</div><!-- end logo-->
		
		<!--menupricipal-->
		<div class="menuprincipal grid_24">
			<a class="yearlist " href="index.php?liste/listtour">Back to List </a>
		</div>
		<!-- end menupricipal-->
				
			<div class="descprincipal grid_22">
				Website Content Manager 
			</div>
			
			<div class="grid_24 listcontent">
				<h1>ADD/Edit Group Travel</h1>
				<div class="grid_22 list">
		

<form method="post" action="index.php?webctrl/edit_group" class="iform grid_18 formbus" >
<ul class="" style="list-style:none;">	
<li class="iheader"><h3>Edit Group Content</h3></li>
<li><label for="hotelinfo">* Edit Group</label>
<select name="idweb_group">
	<?php foreach ($listgroup as $lg){?>
		<option value="<?php echo $lg['idweb_group'];?>"><?php echo $lg['name_en'];?></option>
	<?php }?>
</select>
<input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="select" />
</li>
</ul>
<a href="index.php?webctrl/pg_addgroup">Add New Group</a>
</form>
</div>
	
<div class="grid_22 list">
<form method="post" action="index.php?webctrl/edit_webtours" class="iform grid_18 formbus" >
<ul class="" style="list-style:none;">	
<li class="iheader"><h3>Edit webTours Content</h3></li>
<li><label for="hotelinfo">* Edit web Tours Content</label>
<select name="idweb_travel">
	<?php foreach ($listewebtours as $lg){?>
		<option value="<?php echo $lg['idweb_travel'];?>"><?php echo $lg['name_en'];?></option>
	<?php }?>
</select>
<input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="select" />
</li>
</ul>
<a href="index.php?webctrl/pg_addwebtours">Add New Webtours</a>
</form>
</div>	

<div class="grid_22 list">
<form method="post" action="index.php?webctrl/edit_webtoursimage" class="iform grid_18 formbus" >
<ul class="" style="list-style:none;">	
<li class="iheader"><h3>Edit webTours  Images</h3></li>
<li><label for="hotelinfo">* webTours  Images</label>
<select name="idweb_travel">
	<?php foreach ($listewebtours as $lg){?>
		<option value="<?php echo $lg['idweb_travel'];?>"><?php echo $lg['name_en'];?></option>
	<?php }?>
</select>
<input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="select" />
</li>
</ul>

</form>
</div>	



<div class="grid_22 list">
<form method="post" action="index.php?webctrl/edit_featurespos" class="iform grid_18 formbus" >
<ul class="" style="list-style:none;">	
<li class="iheader"><h3>Edit webTours  Feature Position </h3></li>

	
<?php for($j=1;$j<=6;$j++){?>

<li><label for="hotelinfo">Position <?php echo $j; ?> </label>
<select  class="featureselect"  name="pos_<?php echo $j; ?>">
	<option value=0 >select you web tours ...</option>
	<?php foreach ($listewebtours as $lg){?>
		<option value="<?php echo $lg['idweb_travel'];?>" 
		<?php if (array_key_exists($j-1, $listfeatures)&& $listfeatures[$j-1]["idweb_travel"]== $lg['idweb_travel']){ ?>selected<?php } ?>><?php echo $lg['name_en'];?></option>
	<?php }?>
</select>

</li>

<?php }?>


<li>
<input type="submit" class="ibutton"  name="SendaMessage" id="SendaMessage" value="select" />
</li>
</ul>
</form>
</div>	


</div>
</div><!--end principal-->
</body>
</html>